package view;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import org.jdesktop.application.Application;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ReservaModificacion extends javax.swing.JFrame {
	private JLabel jLabelReserva;
	private JTextField jTextFieldReservaID;
	private JLabel jLabelReservaHora;
	private JButton jButtonReservaCancelar;
	private JButton jButtonReservaModificar;
	private JTextField jTextFieldReservaNombre;
	private JComboBox jComboBoxReservaEstado;
	private JLabel jLabelReservaEstado;
	private JLabel jLabelReservaNombre;
	private JTextField jTextFieldReservaHorario;
	private JTextField jTextFieldFecha;
	private JLabel jLabelReservaFecha;
	private JTextField jTextFieldComensales;
	private JLabel jLabelReservaComensales;

	/**
	* Auto-generated main method to display this JFrame
	*/
//	public static void main(String[] args) {
//		SwingUtilities.invokeLater(new Runnable() {
//			public void run() {
//				ReservaModificacion inst = new ReservaModificacion();
//				inst.setLocationRelativeTo(null);
//				inst.setVisible(true);
//			}
//		});
//	}
	
	public ReservaModificacion() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jLabelReserva = new JLabel();
				getContentPane().add(jLabelReserva);
				jLabelReserva.setBounds(6, 12, 247, 16);
				jLabelReserva.setName("jLabelReserva");
			}
			{
				jTextFieldReservaID = new JTextField();
				getContentPane().add(jTextFieldReservaID);
				jTextFieldReservaID.setBounds(265, 9, 99, 23);
			}
			{
				jLabelReservaComensales = new JLabel();
				getContentPane().add(jLabelReservaComensales);
				jLabelReservaComensales.setBounds(6, 48, 149, 16);
				jLabelReservaComensales.setName("jLabelReservaComensales");
			}
			{
				jTextFieldComensales = new JTextField();
				getContentPane().add(jTextFieldComensales);
				jTextFieldComensales.setBounds(155, 45, 69, 23);
				jTextFieldComensales.setName("jTextFieldComensales");
			}
			{
				jLabelReservaFecha = new JLabel();
				getContentPane().add(jLabelReservaFecha);
				jLabelReservaFecha.setBounds(6, 84, 125, 16);
				jLabelReservaFecha.setName("jLabelReservaFecha");
			}
			{
				jTextFieldFecha = new JTextField();
				getContentPane().add(jTextFieldFecha);
				jTextFieldFecha.setBounds(157, 78, 69, 23);
			}
			{
				jLabelReservaHora = new JLabel();
				getContentPane().add(jLabelReservaHora);
				jLabelReservaHora.setBounds(6, 118, 120, 16);
				jLabelReservaHora.setName("jLabelReservaHora");
			}
			{
				jTextFieldReservaHorario = new JTextField();
				getContentPane().add(jTextFieldReservaHorario);
				jTextFieldReservaHorario.setBounds(157, 108, 69, 23);
			}
			{
				jLabelReservaNombre = new JLabel();
				getContentPane().add(jLabelReservaNombre);
				jLabelReservaNombre.setBounds(6, 145, 72, 16);
				jLabelReservaNombre.setName("jLabelReservaNombre");
			}
			{
				jTextFieldReservaNombre = new JTextField();
				getContentPane().add(jTextFieldReservaNombre);
				jTextFieldReservaNombre.setBounds(90, 142, 137, 23);
			}
			{
				jLabelReservaEstado = new JLabel();
				getContentPane().add(jLabelReservaEstado);
				jLabelReservaEstado.setBounds(6, 180, 56, 16);
				jLabelReservaEstado.setName("jLabelReservaEstado");
			}
			{
				ComboBoxModel jComboBoxReservaEstadoModel = 
					new DefaultComboBoxModel(
							new String[] { "Activa", "Inactiva" });
				jComboBoxReservaEstado = new JComboBox();
				getContentPane().add(jComboBoxReservaEstado);
				jComboBoxReservaEstado.setModel(jComboBoxReservaEstadoModel);
				jComboBoxReservaEstado.setBounds(93, 177, 134, 23);
			}
			{
				jButtonReservaModificar = new JButton();
				getContentPane().add(jButtonReservaModificar);
				jButtonReservaModificar.setBounds(131, 218, 96, 23);
				jButtonReservaModificar.setName("jButtonReservaModificar");
			}
			{
				jButtonReservaCancelar = new JButton();
				getContentPane().add(jButtonReservaCancelar);
				jButtonReservaCancelar.setBounds(243, 218, 97, 23);
				jButtonReservaCancelar.setName("jButtonReservaCancelar");
			}
			pack();
			setSize(400, 300);
			Application.getInstance().getContext().getResourceMap(getClass()).injectComponents(getContentPane());
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
